package com.example.instantmessage;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

//没用

public class RegisterActivity extends AppCompatActivity {
    private TextView tvAccount,tvPwd;
    private EditText etAccount,etPwd;
    private Button btnRegister;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        tvAccount = findViewById(R.id.account_tv_register_activity);
        tvPwd = findViewById(R.id.pwd_tv_register_activity);
        etAccount = findViewById(R.id.account_et_register_activity);
        etPwd = findViewById(R.id.pwd_et_register_activity);
        btnRegister = findViewById(R.id.login_btn_register_activity);

//        btnRegister.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                if (etAccount && etPwd){//数据库无该账号且密码符合格式
//                    Intent intent = new Intent(RegisterActivity.this, MainActivity.class);
//                    startActivity(intent);
//                }
//                Intent intent1 = new Intent(RegisterActivity.this, RegisterActivity.class);
//                startActivity(intent1);
//            }
//        });
    }
}